package com.kovidinvo.domofon.data

import org.springframework.data.annotation.Id

enum class States {
    CLOSED,
    OPEN,
    ERROR
}

data class Location(val latt:Double,val longt:Double,val city:String)

data class User(@Id val id:String,val name:String,var password:String)

data class Gate(@Id val id:String,val name:String,var state:States, val operators: List<String>,val admins: List<String>, val placeId:String)

data class Place(@Id val id:String,val uuid:String, val name:String,val location:Location)

data class ShortPlaceUrl(@Id val linkid:Long, val url:String, val placeId:String)